package net.jonbuck.tassoo.util;

import java.util.Calendar;
import java.util.Date;

import org.apache.commons.lang.time.DateUtils;

/**
 * 
 * 
 * @since 1.0.0
 */
public class DateHelperUtils {

	/**
	 * 
	 * @return
	 */
	public static Date addDays(int days) {
		return DateUtils.addDays(Calendar.getInstance().getTime(), days);
	}

	/**
	 * 
	 * @param months
	 * @return
	 */
	public static Date addMonths(int months) {
		return DateUtils.addMonths(Calendar.getInstance().getTime(), months);
	}

	/**
	 * 
	 * @return
	 */
	public static Date addWeeks(int weeks) {
		return DateUtils.addWeeks(Calendar.getInstance().getTime(), weeks);

	}

	/**
	 * 
	 * @param years
	 *            the number of years to add
	 * @return a newly formatted date that is the specified number of years
	 *         ahead of where we are at now.
	 */
	public static Date addYears(int years) {
		return DateUtils.addYears(Calendar.getInstance().getTime(), years);
	}

}
